<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">

<!--<div th:text="${examinationResultsComDO}"></div>-->

                        <input type="hidden" name="id" th:value="${examinationResultsComDO.id}">
                        <input type="hidden" name="type" th:value="${examinationResultsComDO.type}">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">裁判A：</label>
                            <div class="col-sm-8">
                                <input name="score1" class="form-control" type="text" th:value="${examinationResultsComDO.score1}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">裁判B：</label>
                            <div class="col-sm-8">
                                <input name="score2" class="form-control" type="text" th:value="${examinationResultsComDO.score2}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">裁判C：</label>
                            <div class="col-sm-8">
                                <input name="score3" class="form-control" type="text" th:value="${examinationResultsComDO.score3}">
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="button" onclick="update()" class="btn btn-primary">提交</button>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script>

    function update() {
        $.ajax({
            cache : true,
            type : "get",
            url : "/jzweb/examinationAnswerSheetComSour/update",
            data : $('#signupForm').serialize(),// 你的formid
            async : false,
            error : function(request) {
                parent.layer.alert("Connection error");
            },
            success : function(data) {
                if (data.code == 0) {
                    parent.layer.msg("操作成功");
                    parent.reLoad();
                    var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
                    parent.layer.close(index);

                } else {
                    parent.layer.alert(data.msg)
                }

            }
        });

    }

</script>
</body>
</html>
